$(document).ready(function (){
	sessionUrl();
	showsession();
	
	
	checkmsg();
	showOrHideFootBar();
	checklinks()
	
	$('.logoutBtn').click(function(){
		$.ajax({
			type:'post',
			url:'../actions/userAction.php',
			data:	{
						act			:'logout',
					}, 
			async: true,	
			beforeSend:function(){
				$('.waiting').removeClass('hide');
				$('.mist').removeClass('hide');		
			},
			success:function(data){
				if(data){
					$('.waiting').addClass('hide');
					$('.mist').addClass('hide');
					window.location.href = 'index.php';
				}
			}
		});	
	});
	
	$('.myPosts').click(function(){
		alert('正在施工中，敬请期待！\nComing soon...');
	});	
	
	$('.myReplies').click(function(){
		alert('正在施工中，敬请期待！\nComing soon...');
	});	
	
	$('.myShops').click(function(){
		alert('正在施工中，敬请期待！\nComing soon...');
	});	
	
	$('.myOldItems').click(function(){
		alert('正在施工中，敬请期待！\nComing soon...');
	});	
	
	$('.setting').click(function(){
		alert('正在施工中，敬请期待！\nComing soon...');
	});
});
